package ArrayListIncludeHashMap;

import java.util.ArrayList;
import java.util.HashMap;
import java.util.Set;

public class ArrayListIncludeHashMap {
    public static void main(String[] args) {
        ArrayList<HashMap<String,String>> array=new ArrayList<HashMap<String,String>>();
        HashMap<String,String> hm1=new HashMap<String,String>();
        hm1.put("hasner","marblue");
        hm1.put("hasner2","marblue2");
        array.add(hm1);
        HashMap<String,String> hm2=new HashMap<String,String>();
        hm2.put("hasner3","marblue3");
        hm2.put("hasner4","marblue4");
        array.add(hm2);
        HashMap<String,String> hm3=new HashMap<String,String>();
        hm3.put("hasner5","marblue5");
        hm3.put("hasner6","marblue6");
        array.add(hm3);
        for(HashMap<String,String> hm: array){
            Set<String> keySet = hm.keySet();
            for(String s:keySet){
                String value = hm.get(s);
                System.out.println(s+","+value);
            }
        }
    }
}
